import { Context } from 'koa'
import KoaRouter from 'koa-router'
import { getLogger } from '@/koa-server/util/Log4jsUtil'
import { responseSucData } from '@/koa-server/util/ResponseResultBuilder'

const logger = getLogger('test')

const testControllerRouter = new KoaRouter({ prefix: '/v1/test' })

testControllerRouter.all('/', async (ctx: Context) => {
  responseSucData(ctx, 'hello world')
})

export default testControllerRouter
